package com.shanpin.shebao.web.module.game.model;


public enum EStatus {
	
	NO_RECEIVE(0, "未领取-未通知"),
	NO_RECEIVE_BUT_NOTIFY(1, "未领取-已通知"),
	RECEIVE(2, "已领取")
	;
	
	public static EStatus of(int code) {
		EStatus[] as = EStatus.values();
		for(EStatus a : as) {
			if(code == a.getCode()) {
				return a;
			}
		}
		return null;
	}
	
	EStatus(int code, String name) {
		this.code = code;
		this.name = name;
	}
	int code;
	String name;
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
